package com.tianji.learning.controller.admin;

import com.tianji.learning.domain.dto.ReplyDTO;
import com.tianji.learning.service.IInteractionReplyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@Api(tags = "管理端-互动-回答或评论")
@RestController
@RequiredArgsConstructor
@RequestMapping("/admin/replies")
public class InteractionReplyAdminController {

    private final IInteractionReplyService interactionReplyService;

    @ApiOperation("修改状态回答或评论")
    @PutMapping("/{id}/hidden/{hidden}")
    public void updateHidden(@PathVariable("id") Long id,@PathVariable("hidden") Boolean hidden){
        interactionReplyService.updateHidden(id,hidden);
    }

}